using MicroMsg.UI.Util;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Controls;
namespace MicroMsg.UI.UserContrl
{
	public class TestMsgBox : UserControl
	{
		private ModeDialogHelper mDlgHelper;
		internal Grid LayoutRoot;
		internal Button button1;
		internal Button button2;
		private bool _contentLoaded;
		public DlgReturnEvent ReturnEvent
		{
			set
			{
				this.mDlgHelper.DlgReturnCallBack = value;
			}
		}
		public TestMsgBox()
		{
			this.InitializeComponent();
			this.mDlgHelper = new ModeDialogHelper(this, true, null, false);
		}
		public void Show()
		{
			this.mDlgHelper.Show();
		}
		private void button1_Click(object sender, RoutedEventArgs e)
		{
			object object_ = new object();
			this.mDlgHelper.Hide(new DlgReturnEventArg(object_));
		}
		private void button2_Click(object sender, RoutedEventArgs e)
		{
			this.mDlgHelper.Hide(null);
		}
		[DebuggerNonUserCode]
		public void InitializeComponent()
		{
			if (this._contentLoaded)
			{
				return;
			}
			this._contentLoaded = true;
			Application.LoadComponent(this, new Uri("/MicroMsg;component/Source/UI/Util/TestMsgBox.xaml", 2));
			this.LayoutRoot = (Grid)base.FindName("LayoutRoot");
			this.button1 = (Button)base.FindName("button1");
			this.button2 = (Button)base.FindName("button2");
		}
	}
}
